<template>
  <text>{{ this.msg }}</text>
</template>

<script>
import request from "@/utils/request.js";
export default {
  name: "wxAuthorization",

  data() {
    return {
      msg: 'hello',
    }
  },

  created() {
    this.func()
  },

  methods:{
    func (){
      // this.$router.push({path: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1ef8aab656db05b8&redirect_uri=https%3A%2F%2Fwxvue.cpolar.top/&response_type=code&scope=snsapi_base#wechat_redirect'});
      request.get('/connect/oauth2/authorize?appid=wx1ef8aab656db05b8&redirect_uri=https%3A%2F%2Fwxvue.cpolar.top/&response_type=code&scope=snsapi_base#wechat_redirect').then(res =>{
        this.msg = res.data;
      })
    }
  },

}
</script>

<style scoped>

</style>